<div id="droplinereport">
    <div class="demo-spin-container" v-if="isSpin">
        <Spin size="large" fix></Spin>
    </div>
    <Row style="margin:10px;height: 32px;">
        <div class="fl">
            <div>{{$t("reportForm.selectDev")}}:&nbsp;</div>
        </div>
        <div style="position: relative;width: 300px;" class="fl">
            <div class="search-wrapper" v-click-outside.capture="onClickOutside">
                <i-input v-model.trim="sosoValue" icon="ios-close-circle-outline" @on-change="sosoValueChange" @on-focus="focus" :placeholder="placeholder" @on-click="onClickIcon"></i-input>
                <transition name="fade">
                    <div class="search-item-wrapper" v-show="isShowMatchDev">
                        <ul id="ztree" class="ztree"></ul>
                    </div>
                </transition>
            </div>
        </div>
        <div style="margin-left:20px;" class="fl">
            {{$t("reportForm.selected")}}: <span v-text="selectedCount"></span>
        </div>
        <div class="fl">
            <div style="padding: 0 10px;">{{$t("reportForm.offlineDuration")}}:&nbsp;</div>
        </div>
        <div style="width: 150px;position: relative;" class="fl">
            <i-select v-model="days">
                <i-option value="1">{{$t("reportForm.h1")}}</i-option>
                <i-option value="6">{{$t("reportForm.h6")}}</i-option>
                <i-option value="12">{{$t("reportForm.h12")}}</i-option>
                <i-option value="24">{{$t("reportForm.d1")}}</i-option>
                <i-option value="168">{{$t("reportForm.d7")}}</i-option>
                <i-option value="360">{{$t("reportForm.d15")}}</i-option>
                <i-option value="720">{{$t("reportForm.d30")}}</i-option>
                <i-option value="4320">{{$t("reportForm.d180")}}</i-option>
                <i-option value="8760">{{$t("reportForm.d365")}}</i-option>
            </i-select>
        </div>
        <div style="margin-left:20px;" class="fl">
            <i-button @click="clean" icon="ios-nuclear-outline">{{$t("reportForm.clean")}}</i-button>
        </div>
        <div style="margin-left:20px;" class="fl">
            <i-button @click="onClickQuery" icon="ios-search">{{$t("reportForm.query")}}</i-button>
        </div>
        <div style="margin-left:20px;" class="rt">
            <i-button @click="exportData" icon="ios-search" type="primary">{{$t("reportForm.exportData")}}</i-button>
        </div>
    </Row>
    <div style="margin:10px;">
        <i-table ref="totalTable" size="small" :columns="columns" border :data="tableData" :height="tableHeight" :loading="loading"></i-table>
    </div>
    <transition name="fade">
        <div v-show="mapModal" class="posi-map-wraper">
            <div class="map-modal" @click="mapModal=false"></div>
            <div class="inner-map-wraper">
                <div class="posi-map-title">
                    {{$t("reportForm.seePosi")}}
                    <div class="map-close"></div>
                </div>
                <div id="posi-map"></div>
            </div>
        </div>
    </transition>
</div>